import 'package:flutter/material.dart';

class ListViewTitlePage extends StatelessWidget {
  const ListViewTitlePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('固定表头的ListView'),
      ),
      body: Column(
        children: [
          const ListTile(
            title: Text('标题'),
          ),
          Expanded(
            child: ListView.builder(
              itemBuilder: (context, index) {
                return ListTile(
                  title: Text('内容$index'),
                );
              },
            ),
          ),
        ],
      ),
    );
  }
}
